package com.magina.common.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TestSortInnerModel {

    private int intInnerColumn;

    private String strInnerColumn;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date dateInnerColumn;

    private TestSortInnerDeepModel innerDeepModel;

    @Override
    public String toString() {
        return "TestSortInnerModel{" +
                "intInnerColumn=" + intInnerColumn +
                ", strInnerColumn='" + strInnerColumn + '\'' +
                ", dateInnerColumn=" + dateInnerColumn +
                ", innerDeepModel=" + innerDeepModel +
                '}';
    }
}
